package com.edu.hibernate;

/**
 * ResourceId entity. @author MyEclipse Persistence Tools
 */

public class ResourceId implements java.io.Serializable {

	// Fields

	private Integer lectureId;
	private String lecturePath;
	private Boolean status;

	// Constructors

	/** default constructor */
	public ResourceId() {
	}

	/** full constructor */
	public ResourceId(Integer lectureId, String lecturePath, Boolean status) {
		this.lectureId = lectureId;
		this.lecturePath = lecturePath;
		this.status = status;
	}

	// Property accessors

	public Integer getLectureId() {
		return this.lectureId;
	}

	public void setLectureId(Integer lectureId) {
		this.lectureId = lectureId;
	}

	public String getLecturePath() {
		return this.lecturePath;
	}

	public void setLecturePath(String lecturePath) {
		this.lecturePath = lecturePath;
	}

	public Boolean getStatus() {
		return this.status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof ResourceId))
			return false;
		ResourceId castOther = (ResourceId) other;

		return ((this.getLectureId() == castOther.getLectureId()) || (this
				.getLectureId() != null
				&& castOther.getLectureId() != null && this.getLectureId()
				.equals(castOther.getLectureId())))
				&& ((this.getLecturePath() == castOther.getLecturePath()) || (this
						.getLecturePath() != null
						&& castOther.getLecturePath() != null && this
						.getLecturePath().equals(castOther.getLecturePath())))
				&& ((this.getStatus() == castOther.getStatus()) || (this
						.getStatus() != null
						&& castOther.getStatus() != null && this.getStatus()
						.equals(castOther.getStatus())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getLectureId() == null ? 0 : this.getLectureId().hashCode());
		result = 37
				* result
				+ (getLecturePath() == null ? 0 : this.getLecturePath()
						.hashCode());
		result = 37 * result
				+ (getStatus() == null ? 0 : this.getStatus().hashCode());
		return result;
	}

}